Class_name = "CTurret"
object_name = "TurretDFWC_1_WM_Becker_HE"

[COCKPIT_LIMITS]
x= -0.2, 0.4
y= -0.18, 0.09
z= -0.4, 0.4
[END]

VisualImage=0,"graphics/planes/DFWC5/DFWC5_C1_WM_Low.mgm",1
VisualImage=1,"graphics/planes/DFWC5/DFWC5_C1_WM.mgm",0

CollisionBody="graphics/planes/DFWC5/DFWC5_C1_WM.col"

VisualRadius=2.0

mp_site=true

[attach=0]
	position = 0.0, 0.19, 0.0
	object = "LuaScripts/WorldObjects/BotGunnerBecker.txt"
[end]

[attach=1]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretRiffle.txt"
[end]

[attach=2]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretCamera.txt"
[end]

TargetingScript = "LuaScripts/WorldObjects/Ballistics/BULLET_GER_792x57_SS.bin"

SoundScript="LuaScripts/DFWC5_T1_WM_beck.cfg"

gauges_low_cmd=0,0
gauges_low_cmd=1,1
gauges_low_cmd=2,2
gauges_low_cmd=3,3
gauges_low_cmd=4,4
gauges_low_cmd=5,5
gauges_low_cmd=6,6
gauges_med_cmd=0,7
gauges_med_cmd=1,8
gauges_med_cmd=2,9
gauges_med_cmd=3,10

// transfer_number	= quality group (variable num)
// 100	= med 0 (0)
// 101	= med 0 (1)
// 102	= med 1 (0)
// 103	= med 1 (1)
// 104	= med 2 (0)
// 105	= med 2 (1)

// 000	= low 0 (0)
// 001	= low 0 (1)
// 002	= low 0 (2)
// 003	= low 0 (3)
// 004	= low 1 (0)
// 005	= low 1 (1)
// 006	= low 1 (2)
// 007	= low 1 (3)
// 008	= low 2 (0)
// 009	= low 2 (1)
// 010	= low 2 (2)
// 011	= low 2 (3)

//FetchArgVal= cockpit_arg_num, transfer_number, default_cockpit_arg_val, interpolation_type (clamp - shortest on line scale, wrap - shortest on cyclic scale)

FetchArgVal=1030,000,0,"Smooth_wrap"   // dinamo
FetchArgVal=1154,001,1,"Smooth_clamp"  // magneto
FetchArgVal=2531,100,0,"Smooth_clamp"  // manometer
FetchArgVal=3102,101,0,"Smooth_clamp"  // tachometer
FetchArgVal=8201,102,0,"Smooth_clamp"  // anemometer
FetchArgVal=8251,103,0,"Smooth_clamp"  // altimeter
FetchArgVal=9004,004,0,"Smooth_wrap"  // bomb lever
FetchArgVal=12900,005,0,"Smooth_clamp" // bombholder, photo, radio hide animation

[TurretsPos=1]
	position = 0.008, 0.4719, 0.0
	PosMoveArg = 21000

	// Joints in orientation order!!!

	[Joint=0]
		SectorAngleMin = -80.0
		SectorAngleMax = 80.0

		AngularSpeed   = 60.0
		
		AnimationArgMin = 0.2778
		AnimationArgMax = 0.7222

		AnimationArgNum = 21001

		Point = 0.345615,0.104184,0.0
		Axis = 0.0,1.0,0.0

		IsCycled = false
		IsFullAngle = false
		NextLinkedId = 1

		SoundNumber = 1
	[end]

	[Joint=1]
		SectorAngleMin = -20.0	// real turret angles -45
		SectorAngleMax = 20.0	// real turret angles +0	
		
		AngularSpeed   = 60.0

		AnimationArgMin = 0.444444
		AnimationArgMax = 0.555556

		AnimationArgNum = 21006

		Point = 0.206016,0.236286,0.0
		Axis = 0.0, 1.0, 0.0

		IsFullAngle = false
		DependFromPrevious = true
		PrevLinkedId = 0

		SoundNumber = 2
	[end]

	[Joint=2]
		SectorAngleMin = -28
		SectorAngleMax = 38

		AngularSpeed   = 60.0

		AnimationArgMin = 0.422222
		AnimationArgMax = 0.605555

		AnimationArgNum = 21007

		Point = 0,0,0
		Axis  = 0.0, 0.0, 1.0

		IsFullAngle = true

		SoundNumber = 2
	[end]

	[GunAnimation=0]
		FireArg = 9040
	[end]

	FireLightArg=60220

	relativeBotStand = -0.53, -0.26, -0.0
	relativeBotSit = -0.53, -0.26, -0.0
	relativeBotDead = -0.53, -0.26, -0.0
	TransitionStandPower = 1
	TransitionDeadPower = 1

	BotAttachJointId = 0
	BotFirstAnimJointId = 2 
	BotSecondAnimJointId = 1

	SightPosition = 0.0, 1.3, 0.0

	defaultDirection = -0.2, 0.2, -0.2

	CamDisplacement = -0.6, 0.083662, -0.0825
[end]

[TurretsGun=5]

	Displacement = 0.81, 0.0, 0.0

	GunType = "LuaScripts/WorldObjects/Weapons/Becker.txt"

	ReLoadingStagesTime = 1.5, 4.0, 1.5, 0.3
 
	MaxRoundsInMagazine = 15
	RoundsInMagazine = 15
	MaxReservedMagazines = 3
	ReservedMagazines = 3
	MaxMisFiresInMagazine = 1
	AmountRoundsWithOneTracer = 2

	GunSoundsIdx = 1
	ShotSoundType = 3

	ReservedMagazinesArgIdx = 9181
	FlashAnimationArgIdx = 9040
	TriggerPositionArgIdx = 9000
	RoundsInMagazineArgIdx = 9046
	HideAmmunitionArgIdx = 9045
	ReLoadingArgIdx = 9044
	AzimuthDeviationArgIdx = 9012
	ElevationDeviationArgIdx = 9013
	FiringPinPositionArgIdx = 9016

	BarrelTemperatureDecreaseCorrectionData = 1.0, 4.0, 300.0
	BulletDispertionAngleCorrectionCoefficient = 1.0

	Deviation = 2.46, 1.23, 0.9, 0.02, 0.2, 0.4
	ParallaxDistance = 150.0
	
	NumOfAnimations = 4

	BushCoord = -0.214, -0.039, 0.0
	BushSpeed = 0.0, -1.0, 0.0

	BushConfig = "LuaScripts/WorldObjects/Trash/BatchTrashBush.txt"
	
	[bullet=0]
		Config = "LuaScripts/WorldObjects/Ballistics/SHELL_GER_20x70_HE.txt"
	[end]

	SoundNumber = 1

[end]

SightPos = 0.0, 1.3, 0.0
PositionChangeTime = 0.5
ReloadDelay = 0.3
ShootOutSoundID = 3

BotRotaionValueZ = 0	//-2.0
LegsParameter = 0

BotMaxSecondAngle = 20.0
BotMinSecondAngle = -20.0

BotMaxFirstAngle  = 38.0
BotMinFirstAngle  = -28.0 

FirstToSecondInterp = 0.0

TotalSectorLimits = 9

//   ,         
SectorLimits0 = -180.0, -154.0, +15.0, +17.0
SectorLimits1 = -154.0, -145.0, +7.0, +17.0
SectorLimits2 = -145.0, -134.0, -2.0, +17.0
SectorLimits3 = -134.0, -98.0, -90.0, +15.5

SectorLimits4 = -26.0, +26.0, -24.0, +90.0

SectorLimits5 = +98.0, +137.0, -90.0, +15.5
SectorLimits6 = +137.0, +146.0, -2.0, +17.0
SectorLimits7 = +146.0, +155.0, +8.0, +17.0
SectorLimits8 = +155.0, +180.0, +15.0, +17.0

// Damage

Armor=0 	
LifeRate=500 	
LifeRateFg=5000 
Firing=0.0 
